package com.hsgene.commit.domain;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.hsgene.common.util.date.TimeJsonDeserializer;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 评论回复表
 *
 * @Author: wangxuefeng@hsgene.com
 * @Description:
 * @Date: Created in 11:28 2018/7/5
 * @Modified By:
 */
@Table(name = "geneshop_commit_reply")
public class CommitReplyInfo implements Serializable {
    /**
     * 回复表id
     */
    @Id
    private String id;
    /**
     * 回复对应的评论
     */
    private String commitInfoId;
    /**
     * 回复内容
     */
    private String replyContent;
    /**
     * 回复者id
     */
    private String replyerId;
    /**
     * 回复时间
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date createTime = new Date();
    /**
     * 回复次数
     */
    private String replyCount;
    /**
     * 是否删除(逻辑删除)
     */
    private int isDelete;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCommitInfoId() {
        return commitInfoId;
    }

    public void setCommitInfoId(String commitInfoId) {
        this.commitInfoId = commitInfoId;
    }

    public String getReplyContent() {
        return replyContent;
    }

    public void setReplyContent(String replyContent) {
        this.replyContent = replyContent;
    }

    public String getReplyerId() {
        return replyerId;
    }

    public void setReplyerId(String replyerId) {
        this.replyerId = replyerId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getReplyCount() {
        return replyCount;
    }

    public void setReplyCount(String replyCount) {
        this.replyCount = replyCount;
    }

    public int getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(int isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public String toString() {
        return "CommitReplyInfo{" + "id=" + id + ", commitInfoId=" + commitInfoId + ", replyContent='" + replyContent +
                '\'' + ", replyerId='" + replyerId + '\'' + ", createTime=" + createTime + ", replyCount='" +
                replyCount + '\'' + ", isDelete=" + isDelete + '}';
    }
}
